package com.eduhzy.ttw.clazz.mvp.model;

import com.eduhzy.ttw.clazz.mvp.contract.EditReviewContract;
import com.eduhzy.ttw.clazz.mvp.model.api.service.ClazzApi;
import com.eduhzy.ttw.clazz.mvp.model.entity.ClazzScoreData;
import com.eduhzy.ttw.commonsdk.entity.CommonData;
import com.jess.arms.di.scope.ActivityScope;
import com.jess.arms.integration.IRepositoryManager;
import com.jess.arms.mvp.BaseModel;

import java.util.List;
import java.util.Map;

import javax.inject.Inject;

import io.reactivex.Observable;

/**
 * @author xubo
 * @date 2018-12-5 10:21:24
 */
@ActivityScope
public class EditReviewModel extends BaseModel implements EditReviewContract.Model {


    @Inject
    public EditReviewModel(IRepositoryManager repositoryManager) {
        super(repositoryManager);
    }

    @Override
    public Observable<CommonData<List<ClazzScoreData>>> getEvaluateTagList(Map<String, Object> map) {
        return mRepositoryManager.obtainRetrofitService(ClazzApi.class).getEvaluateTagList(map);
    }

    @Override
    public Observable<CommonData<Map>> evaluateTagDelete(Map<String, Object> map) {
        return mRepositoryManager.obtainRetrofitService(ClazzApi.class).evaluateTagDelete(map);
    }
}